onDownloadFileCompleted

open fun onDownloadFileCompleted(file: File)

Callback invoked when the DownloadFileTask2 (for downloading the rendered HTML image) completes.

If the download was successful, this method decodes the downloaded image file into a Bitmap and sets it as the content of this ImageView. It handles potential recycling of any previously displayed Bitmap and uses sampling if module dimensions are available to conserve memory.

Parameters

file

The File object representing the downloaded image. The isDownloaded field indicates success.